//
//  DLEmoticonView.h
//  IMTest
//
//  Created by mac on 2020/3/31.
//  Copyright © 2020 yanbo li. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DLEmoticonModel.h"

@class DLEmoticonView;

typedef NS_ENUM(NSInteger, DLEmoticonType) {
    DLEmoticonType_GG = 0,//呱呱表情
    DLEmoticonType_Emoji,//emoji表情
};

NS_ASSUME_NONNULL_BEGIN

@protocol DLEmoticonViewDelegate <NSObject>

@optional
- (void)emoticonView:(DLEmoticonView *)emoticonView itemDidClick:(DLEmoticonModel *)emoticonModel;

- (void)emoticonViewDidBackspace:(DLEmoticonView *)emoticonView;

@end

@interface DLEmoticonView : UIView

/// 默认10
@property (nonatomic, assign) CGFloat margin;

/// 默认30 30
@property (nonatomic, assign) CGSize itemSize;

@property (nonatomic, assign) NSInteger maxColCount;

@property (nonatomic, assign) NSInteger maxRowCount;

@property (nonatomic, assign) DLEmoticonType emoticonType;

@property (nonatomic, weak) id<DLEmoticonViewDelegate> delegate;

@property (nonatomic, weak) UIPageControl *pageControl;

- (instancetype)initWithEmoticonType:(DLEmoticonType)emoticonType maxColCount:(NSInteger)maxColCount maxRowCount:(NSInteger)maxRowCount;

@end

NS_ASSUME_NONNULL_END
